<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cc.bluemc.modules.weixin.entity.WxQrcordType" %>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>wxQrcord Form页面</title>
  </head>
  <body class="container">
 	<form class="form-horizontal" action="${ctx}/wx3p/manage/qrCord/save.do" method="post" id="qrcordForm">
		 <input name="id" value="${bean.id}" type="hidden">
		 <input name="appid" value="${bean.appid}" type="hidden">
			 <div class="form-group  form-inline">
			    <label class="col-md-2 control-label">有效时间(秒)：</label>
			    <div class="col-md-10">
			       <input type="text" class="form-control top" value="${bean.expireseconds}"
						  datatype="n3-12" name="expireseconds" placeholder="请输入有效时间">
			    </div>
		  	</div>
			 <div class="form-group  form-inline">
			    <label class="col-md-2 control-label">二维码类型：</label>
			    <div class="col-md-10">
					<select name="actionName" class="form-control" datatype="*">
						<c:forEach items="<%=WxQrcordType.values() %>" var="type">
							<option value="${type}" <c:if test="${type==bean.actionName }">selected="selected"</c:if>>${type}</option>
						</c:forEach>
					</select>
			    </div>
		  	</div>
			<div class="form-group  form-inline">
				<label class="col-md-2 control-label">场景：</label>
				<div class="col-md-10">
					<input type="text" class="form-control top" value="${bean.sceneName}"
						   datatype="s3-12" name="sceneName" placeholder="请输入场景名">
				</div>
			</div>
			 <div class="form-group  form-inline">
			    <label class="col-md-2 control-label">二维码参数：</label>
			    <div class="col-md-10">
			       <input type="text" class="form-control top" value="${bean.param}"
						  datatype="n3-12" name="param" placeholder="请输入二维码参数">
			    </div>
		  	</div>
		<div class="form-group">
	   	<div class="col-md-8 text-right">
	  		<input type="submit" class="btn btn-primary" value="保存">
	  	</div>
	  </div>
 	</form>
	<script type="text/javascript">
		$(function(){
			$("#qrcordForm").Validform({
				tiptype:4
			})
		});
	</script>
  </body>
</html>
